package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
    * 小表档案表
    * </p>
 *
 * @author CBL
 * @since 2022-08-02
 */
@Data
@TableName("dw_terminals_xb")
@ApiModel(value = "TerminalsXb对象", description = "小表档案表")
public class TerminalsXb implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("平台自增主键")
    @TableId("ID")
    private Integer id;

    @ApiModelProperty("设备归属水司")
    @TableField("tenant_id")
    private String tenantId;

    @ApiModelProperty("层级编号")
    @TableField("AreaID")
    private String areaID;

    @ApiModelProperty("厂家编号")
    @TableField("SupplierID")
    private String supplierID;

    @ApiModelProperty("设备编号（加厂家编号、归属水司前缀）")
    @TableField("TerminalID")
    private String terminalID;

    @ApiModelProperty("用户编号")
    @TableField("UserID")
    private String userID;

    @ApiModelProperty("设备型号")
    @TableField("ModelID")
    private String modelID;

    @ApiModelProperty("设备名称")
    @TableField("ModelName")
    private String modelName;

    @ApiModelProperty("表身号")
    @TableField("MNO")
    private String mno;

    @ApiModelProperty("终端地址")
    @TableField("TerminalAddress")
    private String terminalAddress;

    @ApiModelProperty("终端安装地址")
    @TableField("TerminalInstallAddr")
    private String terminalInstallAddr;

    @ApiModelProperty("终端底数")
    @TableField("TerminalBaseNumber")
    private BigDecimal terminalBaseNumber;

    @ApiModelProperty("终端安装日期")
    @TableField("TerminalInstallDate")
    private Date terminalInstallDate;

    @ApiModelProperty("是否有阀")
    @TableField("ValveCtrlWare")
    private String valveCtrlWare;

    @ApiModelProperty("当前是否在线(0-否 1-是)")
    @TableField("IsOnline")
    private Integer isOnline;

    @ApiModelProperty("终端使用状态(2-停用1-使用0-在档)")
    @TableField("TerminalMark")
    private Integer terminalMark;

    @ApiModelProperty("采集频率")
    @TableField("Frequency")
    private String frequency;

    @ApiModelProperty("口径")
    @TableField("Caliber")
    private Integer caliber;

    @ApiModelProperty("材质")
    @TableField("Making")
    private String making;

    @ApiModelProperty("用户名称")
    @TableField("UserName")
    private String userName;

    @ApiModelProperty("用户类型")
    @TableField("UserType")
    private String userType;

    @ApiModelProperty("用户门牌号")
    @TableField("UserDoorplate")
    private String userDoorplate;

    @ApiModelProperty("用户通讯地址")
    @TableField("UserAddress")
    private String userAddress;

    @ApiModelProperty("用户手机号码")
    @TableField("UserPhone")
    private String userPhone;

    @ApiModelProperty("用户身份证号")
    @TableField("UserCode")
    private String userCode;

    @ApiModelProperty("用户银行账号")
    @TableField("UserAccount")
    private String userAccount;

    @ApiModelProperty("用户收费方式")
    @TableField("UserPayType")
    private String userPayType;

    @ApiModelProperty("用户用水性质")
    @TableField("UserWaterType")
    private String userWaterType;

    @ApiModelProperty("用户水价")
    @TableField("UserWaterPrice")
    private String userWaterPrice;

    @ApiModelProperty("用户状态")
    @TableField("UserMask")
    private String userMask;

    @ApiModelProperty("营业所")
    @TableField("UserBelong")
    private String userBelong;

    @ApiModelProperty("表册号")
    @TableField("UserBook")
    private Integer userBook;

    @ApiModelProperty("区域")
    @TableField("UserArea")
    private String userArea;

    @ApiModelProperty("开户日期")
    @TableField("StartDate")
    private String startDate;

    @ApiModelProperty("抄表频次(0-每月抄表,2-单月抄表,1-双月抄表)")
    @TableField("Meter_reading")
    private Integer meterReading;

    @ApiModelProperty("终端位置-定位控件用")
    @TableField("LngLatTemp")
    private String lngLatTemp;

    @ApiModelProperty("终端位置纬度")
    @TableField("Lat")
    private String lat;

    @ApiModelProperty("终端位置经度")
    @TableField("Lng")
    private String lng;


}